﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FriendList.aspx.cs" EnableViewState="false"
    Inherits="NJL.WebUsers.Visitor.FriendList" %>

<%@ Import Namespace="NJL.Web" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register src="~/Controls/WUCVisitorSpaceLeftUserInfo.ascx" tagname="WUCVisitorSpaceLeftUserInfo" tagprefix="uc5" %>
<%@ Register src="~/Controls/WUCVisitorSpaceLeftLastVisitor.ascx" tagname="WUCVisitorSpaceLeftLastVisitor" tagprefix="uc6" %>
<%@ Register src="~/Controls/WUCVisitorSpaceLeftAttention.ascx" tagname="WUCVisitorSpaceLeftAttention" tagprefix="uc7" %>
<%@ Register Src="~/Controls/WUCHeaderVisitor.ascx" TagName="WUCHeaderVisitor" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/WUCFooterShop.ascx" TagName="WUCFooterShop" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>乡间小屋-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="/Styles/personal/personl_001/base_001.css">
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script src="/Scripts/js/jquery.skygqbox.1.3.js" type="text/javascript" charset="UTF-8"></script>
    <script type="text/javascript">
        function getUserId(userid) {
            document.getElementById("hiduserid").value = userid;
        }
        function SendMes() {
            var userid = document.getElementById("hiduserid").value
            var content = document.getElementById("TextArea1").value;
            content = $.trim(content);
            if (content == "") {
                alert("内容不能为空哦^_^")
                return false;
            }
            if (content.length > 500) {
                alert("发送消息不能超过500个字符哦");
                return false;
            }
            $.ajax({
                type: 'POST',
                url: '/Handle/Handler.ashx',
                data: 'sendUserid=' + userid + '&content=' + escape(content) + '&Random=' + Math.random(),
                dataType: 'text',
                success: function (msg) {
                    if (msg == "true") {
                        document.getElementById("TextArea1").value = "";
                        alert("发送信息成功");
                        $.skygqbox.hide();
                    }
                },
                error: function () {
                    $.skygqbox.hide();
                }
            })
        }
 
    </script>
</head>
<body>
    <uc1:WUCHeaderVisitor ID="WUCHeaderVisitor1" runat="server" />
    <!--主要内容-->
    <div class="w1003 cleanFlex" id="content">
        <!--左侧-->
        <div class="w_200 float_l">
            <uc5:WUCVisitorSpaceLeftUserInfo ID="WUCVisitorSpaceLeftUserInfo1" runat="server" />
            <!--最近来访-->
            <div class="blank"></div>
            <uc6:WUCVisitorSpaceLeftLastVisitor ID="WUCVisitorSpaceLeftLastVisitor1" runat="server" />
            <!--我的关注-->
            <div class="blank cleanFlex"></div>
            <uc7:WUCVisitorSpaceLeftAttention ID="WUCVisitorSpaceLeftAttention1" runat="server" />
        </div>
        <div class="boxgreen w_790 float_r" style="_width: 785px; overflow: hidden;">
            <!--位置-->
            <div class="titlePerson">
                <%
                    if (UserId != "")
                    {
                        if (UserId.Equals(Request.QueryString["uid"]))
                        {
                             
                %>
                <h2>
                    我的关注</h2>
                <%
}
                        else
                        {

                %>
                <h2>
                    <asp:Literal ID="litName1" runat="server"></asp:Literal>
                    的关注</h2>
                <%

                    }
                    }
                    else
                    {
                %>
                <h2>
                    <asp:Literal ID="lituserName" runat="server"></asp:Literal>
                    的关注</h2>
                <%
                    }
                         
                %>
            </div>
            <div class="cont">
                <!--关注-->
                <div>
                    <div class="bloglist_status">
                        <span><strong>全部关注</strong>有<span>
                            <asp:Literal ID="litFrientCount" runat="server"></asp:Literal>
                        </span>个</span>
                    </div>
                    <div class="real_list cont">
                        <asp:Repeater ID="rptTravel" runat="server" OnItemDataBound="rptTravel_ItemDataBound">
                            <ItemTemplate>
                                <dl class="imglist dashline" style="height: 65px;">
                                    <dt><a target="_blank" href="/wanjia/<%#Eval("ID1") %>-index.html">
                                        <img src="<%#Eval("IMAGE_CODE").ToString()!=""?BasePage.GetImageUrl(Eval("IMAGE_CODE").ToString(),"U2"):"/Images/avatar.jpg" %>"
                                            alt="<%#Eval("USER_NAME") %>" width="67" height="50" class="picBor" /></a></dt>
                                    <dd>
                                        <h3>
                                            <a target="_blank" href="/wanjia/<%#Eval("ID1") %>-index.html">
                                                <%#Eval("USER_NAME")%></a></h3>
                                    </dd>
                                    <dd class="float_r">
                                        <asp:Literal ID="litAttention" runat="server"></asp:Literal>&nbsp;|&nbsp; <a target="_blank"
                                            href="/wanjia/<%#Eval("ID1") %>-index.html">去串个门</a>
                                    </dd>
                                    <dd class="grayfont">
                                        <%#Eval("SELF_EVALUATION")%></dd>
                                </dl>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <!--分页-->
                    <div class="cleanFlex page" id="pager" runat="server">
                    </div>
                </div>
                <!--右侧-->
                <div class="float_r w_155 cont" style="display: none;">
                    <!--添加关注-->
                    <div class="blank">
                    </div>
                    <div>
                        <a href="/xcgc/" class="icon_add">添加关注</a>
                    </div>
                    <!--搜索-->
                    <div class="blank">
                    </div>
                    <form id="form1" action="/SearchFriend.aspx" method="get">
                    <div>
                        <input type="text" name="keywords" class="input" style="width: 155px;" />
                        <input type="submit" value="搜索" class="btn" />
                    </div>
                    </form>
                    <!--游记分类-->
                    <div class="blank">
                    </div>
                    <div class="boxgreen">
                        <table cellpadding="0" cellspacing="0" width="100%" class="tab">
                            <tr>
                                <th>
                                    分类
                                </th>
                                <th class="right">
                                    <%--<a href="#">管理</a>--%>
                                </th>
                            </tr>
                            <tr>
                                <td>
                                    全部游记
                                </td>
                                <td class="right">
                                    (<asp:Literal ID="litAllNews" runat="server"></asp:Literal>)
                                </td>
                            </tr>
                            <asp:Repeater ID="newsType" runat="server" OnItemDataBound="newsType_ItemDataBound">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <a href="/wanjia/<%#Eval("TYPE_CODE") %>-<%=Request.QueryString["uid"] %>-yjlb.html"
                                                target="_blank">
                                                <%#Eval("TYPE_NAME")%></a>
                                        </td>
                                        <td class="right">
                                            (<asp:Literal ID="litNewsCount" runat="server"></asp:Literal>)
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div style="margin-top: 10px;">
    </div>
    <uc3:WUCFooterShop ID="WUCFooterShop1" runat="server" />
    <input id="hiduserid" type="hidden" />
</body>
</html>
